﻿package chapter_04_Homework;

public class Work_02_Dog extends Work_02_Pet{
	private String strain;

	public Work_02_Dog(String name,String strain) {
		super(name);
		this.strain = strain;
	}

	public String getStrain() {
		return strain;
	}

	public void setStrain(String strain) {
		this.strain = strain;
	}
	
	public void print(){
		super.print();
		System.out.println("我是一只"+this.getStrain()+"犬。");
	}
	
	public void test(){
		System.out.println(color);
		System.out.println(avoirdupois);
		System.out.println(id);
	}
}
